﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Yss.AutoTextBox.Input;

namespace YssTestMain
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("XS0176245396", "WINHAN 5 1/4 10/13", "WINHAN 5 1/4 10/13", "XS0176245396"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("C US", "CITIGROUP INC", "CITIGROUP INC", "C US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("CG US", "LOEWS CORP - CAROLINA GROUP", "LOEWS CORP - CAROLINA GROUP", "CG US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("DF US", "DEAN FOODS CO", "DEAN FOODS CO", "DF US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("FRT US", "FEDERAL REALTY INVS TRUST", "FEDERAL REALTY INVS TRUST", "FRT US"));

            this.autoComboBox1.Items.Add(new AutoCompleteEntry("GE US", "GENERAL ELECTRIC CO", "GENERAL ELECTRIC CO", "GE US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("KO US", "COCA-COLA CO/THE", "COCA-COLA CO/THE", "KO US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("MCD US", "MCDONALD'S CORP", "MCDONALD'S CORP", "MCD US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("MRK US", "MERCK & CO. INC.", "MERCK & CO. INC.", "MRK US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("MSFT US", "MICROSOFT CORP", "MICROSOFT CORP", "MSFT US"));

            this.autoComboBox1.Items.Add(new AutoCompleteEntry("MFE US", "PFIZER INC", "PFIZER INC", "MFE US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("MMT US", "WAL-MART STORES INC", "WAL-MART STORES INC", "MMT US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("MOM US", "EXXON MOBIL CORP", "EXXON MOBIL CORP", "MOM US"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("LGEN LN", "LEGAL & GENERAL GROUP PLC", "LEGAL & GENERAL GROUP PLC", "LGEN LN"));
            this.autoComboBox1.Items.Add(new AutoCompleteEntry("BP/ LN", "BP PLC", "BP PLC", "BP/ LN"));



            Securities s1 = new Securities("JIANGSU EXPRESS CO LTD-H", "177", "HK", "HKD", "Jiangsu Express");
            Securities s2 = new Securities("WINHAN 5 1/4 10/13", "XS0176245396", "US", "USD", "WHBank");
            Securities s3 = new Securities("CITIGROUP INC", "C US", "US", "USD", "Citigroup Inc");
            Securities s4 = new Securities("LOEWS CORP - CAROLINA GROUP", "CG US", "US", "USD", "Loews Corp");
            Securities s5 = new Securities("DEAN FOODS CO", "DF US", "US", "USD", "Dean Foods Co");
            Securities s6 = new Securities("FEDERAL REALTY INVS TRUST", "FRT US", "US", "USD", "FRealtyIT");
            Securities s7 = new Securities("GENERAL ELECTRIC CO", "GE US", "US", "USD", "GECo");
            


            this.autoTextBox2.Items.Add(new KTableEntry(s1));
            this.autoTextBox2.Items.Add(new KTableEntry(s2));
            this.autoTextBox2.Items.Add(new KTableEntry(s3));
            this.autoTextBox2.Items.Add(new KTableEntry(s4));
            this.autoTextBox2.Items.Add(new KTableEntry(s5));
            this.autoTextBox2.Items.Add(new KTableEntry(s6));
            this.autoTextBox2.Items.Add(new KTableEntry(s7));
            
        }

        private void autoTextBox2_TextChanged(object sender, EventArgs e)
        {
            //Securities s8 = new Securities("COCA-COLA CO/THE", "KO US", "US", "USD", "Coca-Cola Co/The");
            //Securities s9 = new Securities("MCDONALD'S CORP", "MCD US", "US", "USD", "McDonald's Corp");
            //Securities s10 = new Securities("MERCK & CO. INC.", "MRK US", "US", "USD", "Merck & Co Inc");
            //Securities s11 = new Securities("MICROSOFT CORP", "MSFT US", "US", "USD", "Microsoft Corp");
            //Securities s12 = new Securities("PFIZER INC", "MFE US", "US", "USD", "Pfizer Inc");
            //Securities s13 = new Securities("WAL-MART STORES INC", "MMT US", "US", "USD", "Wal-Mart SInc");
            //Securities s14 = new Securities("EXXON MOBIL CORP", "MOM US", "US", "USD", "Exxon MCo");
            //Securities s15 = new Securities("LEGAL & GENERAL GROUP PLC", "LGEN LN", "LN", "GBP", "L&G Group PLC");
            //Securities s16 = new Securities("BP PLC", "BP/ LN", "LN", "GBP", "BP PLC");
            //Securities s17 = new Securities("AJINOMOTO CO INC", "2802", "JT", "JPY", "Ajinomoto");
            //Securities s18 = new Securities("MEVEN & I HOLDINGS CO LTD", "3382", "JT", "JPY", "SIHCo");
            //Securities s19 = new Securities("MHIN-ETSU CHEMICAL CO LTD", "4063", "JT", "JPY", "Shin-Etsu CCO");
            //this.autoTextBox2.Items.Add(new KTableEntry(s8));
            //this.autoTextBox2.Items.Add(new KTableEntry(s9));
            //this.autoTextBox2.Items.Add(new KTableEntry(s10));
            //this.autoTextBox2.Items.Add(new KTableEntry(s11));
            //this.autoTextBox2.Items.Add(new KTableEntry(s12));
            //this.autoTextBox2.Items.Add(new KTableEntry(s13));
            //this.autoTextBox2.Items.Add(new KTableEntry(s14));
            //this.autoTextBox2.Items.Add(new KTableEntry(s15));
            //this.autoTextBox2.Items.Add(new KTableEntry(s16));
            //this.autoTextBox2.Items.Add(new KTableEntry(s17));
            //this.autoTextBox2.Items.Add(new KTableEntry(s18));
            //this.autoTextBox2.Items.Add(new KTableEntry(s19));
        }
    }
}
